<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>表单对象属性过滤选择器</title>
		<script type="text/javascript" src="../script/jquery-1.7.2.js"></script>
		<script type="text/javascript">
			$(function(){
				//console.log($(":checked"));
				//console.log($(":selected"));
				//匹配页面中选中的单选框
				console.log($(":radio:checked"));
				//匹配页面中选中的复选框
				console.log($(":checkbox:checked"));
				//匹配页面中第一个下拉框中选中的option
				console.log($("select:first :selected"));
				//匹配name=hobby的标签
				console.log($("[type='checkbox']"));
			})
		</script>
	</head>
	<body>
	<input type="checkbox" name="hobby">
	<input type="radio" checked>
	<input type="radio">
	<input type="checkbox" checked>
	<input type="checkbox">
	<select>
		<option>A</option>
		<option>AA</option>
		<option>AAA</option>
	</select>
	<select>
		<option>B</option>
		<option>BB</option>
		<option>BBB</option>
	</select>
	</body>
</html>

